package com.zixuan.sina;

import com.zixuan.sina.config.rabbitmq.DirectChange;
import com.zixuan.sina.service.impl.WebSocketImpl;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.config.authentication.PasswordEncoderParser;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
@EnableRabbit
public class App {
    public static void main(String[] args) {
//        DirectChange.doInit();
        ConfigurableApplicationContext run = SpringApplication.run(App.class, args);
        WebSocketImpl.setApplicationContext(run);
    }
}
